package com.itheima.reggie.service;

import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface EmployeeService {
    //登录
    R<Employee> login(Employee employee);

    //保存
    void save(Employee employee);

    //修改
    void update(Employee employee);

    //根据名字查找
    Page<Employee> findByName(Integer page ,Integer pageSize, String name);

    //根据ID查找
    R<Employee> findById(Long id);
}
